<div class="layui-card">
    <div class="layui-card-body ">
        <form action=""  class="layui-form">
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input type="text" name="keywords" value="{$search.keywords|default=''}" class="layui-input" placeholder="用户名|手机号|电子邮箱">
                </div>
                <div class="layui-input-inline">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">搜索</button>
                </div>
            </div>
        </form>
        <form action="{:url('admin/steward.apps/delappversion',['app_id'=>$app_id])}" method="post" class="layui-form delete-form" id="cp-form">
            <div class="layui-btn-group">
                <a href="{:url('admin/steward.apps/addappversion',['app_id'=>$app_id])}" class="layui-btn layui-btn-xs">
                    <i class="layui-icon layui-icon-addition"></i>
                    添加发行包
                </a>
                <button data-url="{:url('admin/steward.apps/delappversion',['app_id'=>$app_id])}" class="layui-btn layui-btn-xs layui-btn-danger">
                    <i class="layui-icon">&#xe640;</i>
                    删除发行包
                </button>
                <a href="javascript:history.go(-1);" class="layui-btn layui-btn-xs">
                    返回
                </a>
            </div>
            <table class="layui-table">
                <thead>
                <tr>
                    <th width="10">
                        <input type="checkbox" class="layui-input"  lay-skin="primary" lay-filter="select-all">
                    </th>
                    <th width="200">版本</th>
                    <th width="120">下载次数</th>
                    <th width="120">软件类型</th>
                    <th width="120">平台支持</th>
                    <th width="120">开启下载</th>
                    <th width="120">发行时间</th>
                    <th width="">操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="appVersionList" id='v'}
                <tr>
                    <td >
                        <input type="checkbox" name="idList[]" class="layui-input" lay-skin="primary" value="{$v.id}">
                    </td>
                    <td>{$v.app_version_code.title|default=''} {$v.app_version}</td>
                    <td>{$v.app_install}</td>
                    <td>
                        <span class="layui-badge layui-badge-rim">{$v.app_type.title|default='应用软件'}</span>
                    </td>
                    <td>
                        {volist name='v.support_category' id='vv'}
                        <span class="layui-badge layui-badge-rim">{$vv.title|default=''}</span>
                        {/volist}
                    </td>
                    <td>
                        {switch name='v.is_install'}
                        {case value='0'} <span class="layui-badge">否</span> {/case}
                        {case value='1'} <span class="layui-badge layui-bg-green">是</span>{/case}
                        {/switch}
                    </td>
                    <td>{$v.update_time}</td>
                    <td>
                        <a href="{:url('admin/steward.apps/saveappversion',['id'=>$v['id']])}" class="layui-btn layui-btn-xs layui-btn-danger ">
                            <i class="layui-icon layui-icon-edit"></i>
                            编辑
                        </a>
                    </td>
                </tr>
                {/volist}
                </tbody>
            </table>
            {$appVersionList|raw}
        </form>
    </div>
</div>